package com.xy.ext;

import com.xy.bean.Blue;
import com.xy.bean.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/10 11:02
 * @description 扩展原理
 */

@ComponentScan
@Configuration
public class ExtConfig {

    @Bean
    public Blue blue() {
        return new Blue();
    }


    @Bean
    public Car Car() {
        return new Car();
    }
}
